﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace QH_MSS_WPF_Core.Models
{
    public class BaseModel:BindableBase
    {
        public bool IsChange { get; set; }

        protected override bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
        {
            var b= base.SetProperty(ref storage, value, propertyName);
            if (b)
            {
                IsChange = true;
            }
           return b;
        }
    }
}
